<%@ page import="org.apache.shiro.SecurityUtils" %>
<%@ page import="com.swt.draw.entity.Admin" %>
<%@page contentType="text/html;charset=UTF-8"%>
<%@ include file="dbconn.jsp"%>
<%@ include file="common.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>管柱图单机设计软件说明</title>
</head>
<body style="display: flex;align-items: center; flex-direction: column;">
<BR>
<div class="Title">管柱图单机设计软件</div>
<table cellspacing=0 cellpadding=0 width="50%" align="center" border=0>
	<tr>
		<td height="390" valign="top">
			<table width="100%" align="center">
				<tr>
					<td align="center">
						<table border="0" width="100%">
								<tr align="left" height="25">
									<td nowrap><font size="4" color="#0000FF" face="华文新魏"><b>使用说明：</b></font></td>
								</tr>
								<tr align="left" height="25">
									<td nowrap >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.管柱图单机设计软件是一款管柱图设计软件，相比浏览器设计管柱图方法更加方便简洁。</td>
								</tr>
								<tr align="left" height="25">
									<td nowrap>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.未安装过管柱图单机设计软件的用户选择“单击下载”，下载完成后解压，运行安装目录下的“setup.exe”即可。</td>
								</tr>
                                <tr height="25">
									<td nowrap  align="left">
                                    	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;初次安装：<a href="/gzht/statics/exeFile/draw.rar"  target="_self"><font color="#FF0000">点击软件下载</font></a>&nbsp;&nbsp;&nbsp;<%--<a href="../download.jsp?filename=help.DOC"  target="_self"><font color="#FF0000">帮助文件下载</font></a>--%>
								</tr>
                                <tr height="25">
                                    <td nowrap  align="left">
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.已经安装，请点击直接启动软件。<input type="button" name="sub" value="启动软件" onClick="Run()" class="btn1">

                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                </tr>
								<%--<tr height="25">
									<td nowrap  align="left">
                                    	      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.如果此页显示管柱图，则此页的单机软件管柱图就显示在已完成设计中的管柱图；点击“<font color="#FF0000">删除</font>”按钮，则删掉本页显示</a>
									</td>
								</tr>
								<tr height="25">
									<td nowrap  align="left">
                                    	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;的管柱图，在已完成设计中的管柱图则显示网页程序所作管柱图！</a>
									</td>
								</tr>--%>
						</table>
				</td>
				</tr>
		  </table>
		</td>
	</tr>
</table>
<script language=JavaScript>
	function Run(){
		try{
			var userid= "<%= ((Admin)SecurityUtils.getSubject().getPrincipal()).getAdminNo()%>";//葱页面获取用户ID
			{
				window.location.href="sims://" + userid;
			}
			var all="";
			var c=0;
			var timer=setInterval(
					function(){
						var strProcess="wellChart.exe";
						var locator = new ActiveXObject ("WbemScripting.SWbemLocator");
						var service = locator.ConnectServer("."); // 本机
						var properties = service.ExecQuery("SELECT * FROM Win32_Process");
						var eProc = new Enumerator(properties);
						var bRet = false;
						bRet=false;
						for( ;!eProc.atEnd();eProc.moveNext()) {
							var p = eProc.item().Name;
							if(p.toUpperCase() == strProcess.toUpperCase()){
								bRet = true;
								break;
							}
						}
						c=c+0.5;
						if(bRet==false){
							if(c>0){
								clearInterval(timer);
								window.location.href=document.URL;
								window.location.reload();
							}else{
								clearInterval(timer);
							}
						}

					}
					,1000
			);
		}catch(e){
			alert("找不到软件，请确定你已经安装！");
		}
	}
</script>
</body>
</html>
<%@ include file="dbconnclose.jsp"%>
